<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateNewBookRecommendTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('new_book_recommend', function (Blueprint $table) {
            $table->increments('id')->unique();
            $table->integer('pid',false,false)->comment('书籍ID');
            $table->integer('sort')->default(99)->comment('排序');
            $table->string('extra',255)->comment('书籍相关信息');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('new_book_recommend');
    }
}
